<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>重置密码</title>
</head>
<body>
<div style="width:400px;vertical-align:middle;margin: 0 auto;">
    <form action="{% url 'auth_app:forget_password' %}" method="post">
        {% csrf_token %}
        <table>
            <tr>
                <td><label>请输入账号</label></td>
                <td><input type="text" name="username"></td>
            </tr>
            <tr>
                <td><label>新密码</label></td>
                <td><input type="password" name="password"></td>
            </tr>
            <tr>
                <td><label>确认新密码</label></td>
                <td><input type="password" name="check_password"></td>
            </tr>
            <tr>
                <td><input type="submit" value="确认修改"></td>
            </tr>
        </table>
    </form>
    <div style="margin:0 auto;width: 300px">
        {% if state %}
            <p style="color: red">{{ state }}</p>
        {% endif %}
    </div>
</div>
</body>
</html>